#include "pch.h"
#include "RTFHelper.h"
using namespace Windows::UI::Xaml::Controls;

void RTFHelper::ConvertRTF(Platform::String^ rtfstring)
{
	RichEditBox^ box=ref new RichEditBox();
	box->Document->SetText(Windows::UI::Text::TextSetOptions::FormatRtf,rtfstring);
	Platform::String^ text;
	box->Document->GetRange(0,1)->GetText(Windows::UI::Text::TextGetOptions::None,&text);
}
